package com.dj.springcloud.dao;

import com.dj.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Dev_J
 * @date 2020-12-10 22:13
 */



@Mapper
/**
 * 尽量用Mapper注解用，@Repository插入会出现问题
 */
public interface PaymentDao {
    /**
     *
     * @param payment
     * @return
     */
    public int create(Payment payment);

    /**
     * 通过id获取payment对象
     * @param id
     * @return
     */

    public  Payment getPaymentById(@Param("id") Long id);

}
